import request from '@/utils/request'

const orderWriteOff = {
  // 商户管理列表
  GetAdminLeageStore(data) {
    return request({
      url: '/api/admin/core/AdminMerchant/GetAdminLeageStore',
      method: 'post',
      data
    })
  },
  // 获取合作人下拉列表
  GetAdminLeageStoreList(data) {
    return request({
      url: '/api/admin/core/Store/GetAdminLeageStoreList',
      method: 'post',
      data
    })
  },
  // 新增商户
  AddAdminAccountStoreMerchant(data) {
    return request({
      url: '/api/admin/core/AdminMerchant/AddAdminAccountStoreMerchant',
      method: 'post',
      data
    })
  },
  // 修改商户
  EditAdminAccountStoreMerchant(data) {
    return request({
      url: '/api/admin/core/AdminMerchant/EditAdminAccountStoreMerchant',
      method: 'post',
      data
    })
  },
  // 获取修改商户号详情
  GetAdminMerchantDetail(data) {
    return request({
      url: '/api/admin/core/AdminMerchant/GetAdminMerchantDetail',
      method: 'post',
      data
    })
  },
}

export default orderWriteOff